const getters = {
    token: state => state.user.token,   //登录token
    avatar: state => state.user.avatar, //头像
    name: state => state.user.name, //用户名
    roles: state => state.user.roles,   //用户角色
    addRouters: state => state.permission.addRouters,     //登录添加合并路由
    browserHeaderTitle: state => state.user.browserHeaderTitle, //浏览器title

    courseId: state => state.user.courseId  // 课程ID
}
export default getters
